<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="">
        {:token()}
        <input type="hidden" name="row[id]" value="{$row.id}">
        <div class="form-group form-handle">
            <label class="control-label col-xs-12 col-sm-3">{:__('Cname')}:</label>
            <div class="col-xs-12 col-sm-7">
                <input id="c-cname" data-rule="required" class="form-control" name="row[cname]" type="text" value="{$row.cname}">
            </div>
        </div>

        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-3">{:__('jiafang')}:</label>
            <div class="col-xs-12 col-sm-7">
                <input id="c-jiafang" data-rule="required" class="form-control" name="row[jiafang]" type="text" value="{$row.jiafang}">
            </div>
        </div>

        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-3">{:__('Partner')}:</label>
            <div class="col-xs-12 col-sm-7">
                <input id="c-partner" data-rule="required" class="form-control" name="row[partner]" type="text" value="{$row.partner}">
            </div>
        </div>

        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-3">{:__('Department_id')}:</label>
            <div class="col-xs-12 col-sm-7">
                <input id="c-department_id" data-rule="" data-source="department/index/selectpage" class="form-control selectpage" name="row[department_id]" type="text" value="{$row.department_id}">
            </div>
        </div>

        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-3">{:__('Participating_departments')}:</label>
            <div class="col-xs-12 col-sm-7">
                {$participatingList}
            </div>
        </div>

        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-3">{:__('Type')}:</label>
            <div class="col-xs-12 col-sm-7">
                <select  id="c-type" data-rule="" class="form-control selectpicker" name="row[type]">
                    {foreach name="typeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.type"}selected{/in}>{$vo}</option>
                    {/foreach}
                </select>
            </div>
        </div>

        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-3">{:__('Contacts')}:</label>
            <div class="col-xs-12 col-sm-7">
                <input id="c-contacts" data-rule="required" class="form-control" name="row[contacts]" type="text" value="{$row.contacts}">
            </div>
        </div>

        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-3">{:__('Mobile')}:</label>
            <div class="col-xs-12 col-sm-7">
                <input id="c-mobile" data-rule="" class="form-control" name="row[mobile]" type="number" value="{$row.mobile}">
            </div>
        </div>

        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-3">{:__('Counterpart')}:</label>
            <div class="col-xs-12 col-sm-7">
                <input id="c-counterpart" data-rule="required" class="form-control" name="row[counterpart]" type="text" value="{$row.counterpart}">
            </div>
        </div>

        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-3">{:__('Counterpart_mobile')}:</label>
            <div class="col-xs-12 col-sm-7">
                <input id="c-counterpart_mobile" data-rule="" class="form-control" name="row[counterpart_mobile]" type="number" value="{$row.counterpart_mobile}">
            </div>
        </div>

        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-3">{:__('Remarks')}:</label>
            <div class="col-xs-12 col-sm-7">
                <textarea id="c-remarks" data-rule="" class="form-control " rows="5" name="row[remarks]" cols="50">{$row.remarks}</textarea>
            </div>
        </div>

        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-3">{:__('Agreementfile')}:</label>
            <div class="col-xs-12 col-sm-7">
                <div class="input-group">
                    <input id="c-agreementfile" data-rule="" class="form-control" size="50" name="row[agreementfile]" type="text" value="{$row.agreementfile}">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="plupload-agreementfile" class="btn btn-danger plupload" data-input-id="c-agreementfile" data-multiple="false" data-preview-id="p-agreementfile"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                        <span><button type="button" id="fachoose-agreementfile" class="btn btn-primary fachoose" data-input-id="c-agreementfile" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                    </div>
                    <span class="msg-box n-right" for="c-agreementfile"></span>
                </div>
                <ul class="row list-inline plupload-preview" id="p-agreementfile"></ul>
            </div>
        </div>

        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-3">{:__('Agreement')}:</label>
            <div class="col-xs-12 col-sm-7">
                <div class="input-group">
                    <input id="c-agreement" data-rule="" class="form-control" size="50" name="row[agreement]" type="text" value="{$row.agreement}">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="plupload-agreement" class="btn btn-danger plupload" data-input-id="c-agreement" data-multiple="false" data-preview-id="p-agreement"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                        <span><button type="button" id="fachoose-agreement" class="btn btn-primary fachoose" data-input-id="c-agreement" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                    </div>
                    <span class="msg-box n-right" for="c-agreement"></span>
                </div>
                <ul class="row list-inline plupload-preview" id="p-agreement"></ul>
            </div>
        </div>

        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-3">{:__('Startdate')}:</label>
            <div class="col-xs-12 col-sm-7">
                <input id="c-startdate" data-rule="" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[startdate]" type="text" value="{$row.startdate}">
            </div>
        </div>

        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-3">{:__('Enddate')}:</label>
            <div class="col-xs-12 col-sm-7">
                <input id="c-enddate" data-rule="" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[enddate]" type="text" value="{$row.enddate}">
            </div>
        </div>

        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-3">{:__('Signingperiod')}:</label>
            <div class="col-xs-12 col-sm-7">
                <input id="c-signingperiod" data-rule="" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[signingperiod]" type="text" value="{$row.signingperiod}">
            </div>
        </div>

        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-3">{:__('Scansion')}:</label>
            <div class="col-xs-12 col-sm-7">
                <div class="input-group">
                    <input id="c-scansion" data-rule="" class="form-control" size="50" name="row[scansion]" type="text" value="{$row.scansion}">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="plupload-scansion" class="btn btn-danger plupload" data-input-id="c-scansion" data-multiple="false" data-preview-id="p-scansion"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                        <span><button type="button" id="fachoose-scansion" class="btn btn-primary fachoose" data-input-id="c-scansion" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                    </div>
                    <span class="msg-box n-right" for="c-scansion"></span>
                </div>
                <ul class="row list-inline plupload-preview" id="p-scansion"></ul>
            </div>
        </div>

        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-3">职能部门：</label>
            <div class="col-xs-12 col-sm-7">
                {$divisionsList}
            </div>
        </div>

        <div class="form-group layer-footer">
            <label class="control-label col-xs-12 col-sm-2"></label>
            <div class="col-xs-12 col-sm-8">
                <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
                <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
            </div>
        </div>
    </div>
</form>
